import java.text.SimpleDateFormat;

public class dateTest {
    public static void main(String[] args) {
        String test = "9/12/10";
        String testForm = "dd/MM/yy";
        SimpleDateFormat form = new SimpleDateFormat(testForm);
        try {
            System.out.println(form.parse(test));
        } catch (Exception e) {
            System.out.println("broke");
        }
    }
}